#coding:utf-8
import os
# print(os.getcwd())
with open(os.getcwd()+'/js/flask_cors_js.js', encoding='utf-8') as f:
    js = f.read()

print(js)
# import execjs
#
# ct = execjs.compile(js)
#
# print(ct.call('Rohr_Opt.reload','1'))

from selenium import webdriver

browser = webdriver.Chrome(executable_path='chromedriver')
print("*"*80)
print(browser.execute_script(js))
